package cn.thoughtworks.school.entities;

import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

@Setter
@Getter
@Builder
public class User {
    private String username;
    private List<Integer> roles;
    private Long id;

    public User(String username, Long id) {
        this.username = username;
        this.id = id;
    }

    public User() {
    }

    public User(String username, List<Integer> roles, Long id) {
        this.username = username;
        this.roles = roles;
        this.id = id;
    }

}
